// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 导入element-ui
// eslint-disable-next-line no-unused-vars
import Element from 'element-ui' // 导入element
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'
import SlideVerify from 'vue-monoplasty-slide-verify'
Vue.config.productionTip = false
// 为了让axios在全局都能被用到
Vue.prototype.$axios = axios
// 在所有请求的前面自动加
axios.defaults.baseURL = '/api'
Vue.use(Element) //
Vue.use(SlideVerify)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router: router,
  components: { App },
  template: '<App/>'
})
